/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.fei.ClassDiagram.drawing.Lines;

import java.awt.Graphics;
import org.fei.ClassDiagram.drawing.Point;

/**
 *
 * @author Tomas
 */
abstract public class Line {
    
    protected Point start;
    protected Point end;
    
    protected static int fontSize = 12;

    public Line(Point start, Point end) {
        this.start = start;
        this.end = end;
    }
    
    abstract public void draw(Graphics g);

    public static void setFontSize(int fontSize) {
        Line.fontSize = fontSize;
    }

    public Point getEnd() {
        return end;
    }

    public void setEnd(Point end) {
        this.end = end;
    }

    public Point getStart() {
        return start;
    }

    public void setStart(Point start) {
        this.start = start;
    }
    
    
}
